home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_PICT / Testing / hex_tests / pat=set1=oldcolor.hex < prev    next >
Text File  |  1995-06-12  |  2KB  |  58 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that the primary object
  12. %    manipulations (filling, painting, erasing, framing) work as
  13. %    they should with patterns.  It doesn't test all opcodes.  Merely
  14. %    a representative subset.
  15. %    This test confirms that it works properly with pict 1 style colors
  16. %
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18.  
  19. 02 0008 142A 552A 1408        % back pat (grey diamonds)
  20. 09 7789 8f8f 7798 f8f8            % pen pat (the black dimpled circles one)
  21. 0A 8244 3944 8201 0101        % fill pat
  22. 0B   0010 0010    % roundrect oval size
  23.  
  24. %
  25. %    Use old-style colors
  26. %
  27. 0F    0000 00D1    % background color (red)
  28. 0E    0000 0149    %  foreground color (cyan)
  29.  
  30. % draw lines along its four sides
  31. 20 0010 0000 0010 00FF
  32. 20 0000 0010 00FF 0010
  33. 20 0050 0000 0050 00FF
  34. 20 0000 0050 00FF 0050
  35.  
  36. 20 0000 0080 00FF 0080
  37. 20 0000 00C0 00FF 00C0
  38.  
  39. 20 0080 0000 0080 00FF
  40. 20 00C0 0000 00C0 00FF
  41.  
  42. % Frame a rectangle
  43. 30 0010 0010 0050 0050
  44.  
  45. % paint an adjacent roundrect
  46. 41 0010 0080 0050 00C0
  47.  
  48. % try to invert part of the  last rectangle with an arc
  49. 63 0010 0080 0050 00C0  0010 00A0
  50.  
  51. % fill an oval below that one
  52. 54 0080 0080 00C0 00C0
  53.  
  54. % erase an arc 
  55. 62 0080 0010 00C0 0050 0010 00A0
  56.  
  57. FF    % end
  58.